package com.fly.order.client;

import com.fly.order.domain.ProductInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Fly
 * @Description
 * @Date Created in 9:59 2018/4/1
 * @Modified by
 */
@FeignClient(name = "product")
public interface ProductClient {

    @GetMapping("/msg")
    String getProductMsg();

    @PostMapping("/products/listForOrder")
    List<ProductInfo> listForOrder(@RequestBody List<String> productIdList);
}
